fn MyPos a b =
 (
  	 format "pos: %, %\n" b.x b.y
 )
  
  assemblyFileName = ((getdir #scripts) as string + "/AnimControl.dll")
  
  -- Load the class library created 
  dotnet.LoadAssembly "f:/Script/dotnet/AnimControl.dll" 
  
  hForm = dotNetObject  "AnimControl.MouseWindow"
  
  dotNet.addEventHandler hForm "PosEvent" MyPos 
   
  hForm.show()
  	
 hform.ctrl.SetX 0 0 --sets the x position of the cross in the window
 hform.ctrl.SetY 0 0 --sets the y position of the cross in the window
  